import Vue from 'vue'

export default {
  searchFoodService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectfood,config).then(r=>{
      callback(r.data);
    });
  },
  searchfoodbyname:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.searchfoodbyname,config).then(r=>{
      callback(r);
    });
  },
  searchfoodbykind:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.searchfoodbykind,config).then(r=>{
      callback(r);
    });
  },
  searchallfood:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.searchallfood,config).then(r=>{
      callback(r);
    });
  },
  addshoppingcartdetail:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.addshoppingcartdetail,config).then(r=>{
      callback(r);
    });
  },
}